$OpenBSD: patch-jdk_src_solaris_native_java_net_PlainSocketImpl_c,v 1.1 2017/02/23 13:11:42 kurt Exp $
--- jdk/src/solaris/native/java/net/PlainSocketImpl.c.orig	Wed Feb  1 16:16:32 2017
+++ jdk/src/solaris/native/java/net/PlainSocketImpl.c	Wed Feb 22 19:22:44 2017
@@ -212,6 +212,7 @@ Java_java_net_PlainSocketImpl_socketCreate(JNIEnv *env
     }
 
 #ifdef AF_INET6
+#ifndef __OpenBSD__
     /* Disable IPV6_V6ONLY to ensure dual-socket support */
     if (domain == AF_INET6) {
         int arg = 0;
@@ -222,6 +223,7 @@ Java_java_net_PlainSocketImpl_socketCreate(JNIEnv *env
             return;
         }
     }
+#endif /* ! __OpenBSD__ */
 #endif /* AF_INET6 */
 
     /*
